package com.isdepci.project.gasEmission.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.gasEmission.mapper.BusinessTravelMapper;
import com.isdepci.project.gasEmission.domain.BusinessTravel;
import com.isdepci.project.gasEmission.service.IBusinessTravelService;

/**
 * 差旅Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-01
 */
@Service
public class BusinessTravelServiceImpl implements IBusinessTravelService
{
    @Autowired
    private BusinessTravelMapper businessTravelMapper;

    /**
     * 查询差旅
     */
    @Override
    public BusinessTravel selectBusinessTravelById(Long id)
    {
        return businessTravelMapper.selectBusinessTravelById(id);
    }

    /**
     * 查询差旅列表
     */
    @Override
    public List<BusinessTravel> selectBusinessTravelList(BusinessTravel businessTravel)
    {
        return businessTravelMapper.selectBusinessTravelList(businessTravel);
    }

    /**
     * 新增差旅
     */
    @Override
    public int insertBusinessTravel(BusinessTravel businessTravel)
    {
        return businessTravelMapper.insertBusinessTravel(businessTravel);
    }

    /**
     * 修改差旅
     */
    @Override
    public int updateBusinessTravel(BusinessTravel businessTravel)
    {
        return businessTravelMapper.updateBusinessTravel(businessTravel);
    }

    /**
     * 批量删除差旅
     */
    @Override
    public int deleteBusinessTravelByIds(Long[] ids)
    {
        return businessTravelMapper.deleteBusinessTravelByIds(ids);
    }

    /**
     * 删除差旅信息
     */
    @Override
    public int deleteBusinessTravelById(Long id)
    {
        return businessTravelMapper.deleteBusinessTravelById(id);
    }
}
